﻿using System.Collections.Generic;
using System.Linq;
using HighDiveEngine.Model;

namespace HighDiveEngine.Aggregates
{
    /// <summary>
    /// List holding dives, used for queue and history).
    /// </summary>
    public class DiveScoreList : List<DiveScore>
    {
        public double? Sum()
        {
            return this.Sum(x => x.Score);
        }

        public double? Max()
        {
            return this.Max(x => x.Score);
        }

        public double? Min()
        {
            return this.Min(x => x.Score);
        }
    }
}
